const ChartsRouter = [
  {
    path: "/chart",
    component: () => import('@/layout/index.vue'),
    name: "Charts",
    redirect: "/chart/migration",
    meta: {
      title: "可视化图表",
      roles: ["super"],
    },
    children: [
      {
        path: "migration",
        component: () => import("@/views/charts/migration/index.vue"),
        name: "migration",
        meta: {
          title: "迁徙图",
        },
      },
      {
        path: "easy",
        component: () => import("@/views/charts/easy/index.vue"),
        name: "easy",
        meta: {
          title: "简单图表",
        },
      },
      {
        path: "bar",
        component: () => import("@/views/charts/bar.vue"),
        name: "bar",
        meta: {
          title: "柱状图",
        },
      },
      {
        path: "radar",
        component: () => import("@/views/charts/radar.vue"),
        name: "radar",
        meta: {
          title: "雷达图",
        },
      },
      {
        path: "pie",
        component: () => import("@/views/charts/pie.vue"),
        name: "pie",
        meta: {
          title: "饼图",
        },
      },
    ],
  },
];
export default ChartsRouter;
